package com.xxxy;


import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ltf")
public class SentinelController {

    @SentinelResource(value = "helloResource",blockHandler = "helloBlockHandler",
            blockHandlerClass = MoitorBlockHandler.class)
    @GetMapping("xxx")
    public String hhh(){
        return "我是大帅哥";
    }
    @GetMapping("/hhh")
    public String ggg(){
        return "我就是大帅哥";
    }


    }


